load("/data/general/grids/basic.lua")

local myfloor = "terrain/sand.png"
local mywall = "terrain/water_wall1.png"

newEntity{
	define_as = "TORCH",
	name = "A glowing torch",
	display = 'I', color_r=255, color_g=255, color_b=0,
	image = myfloor, tint=colors.BLUE,
	add_displays = {mod.class.Grid.new{image="terrain/torch.png", dislpay_on_seen=true, display_on_remember=true}},
	always_remember = true,
	block_move = true,
	shader = "underwater",
}

newEntity{
	define_as = "WARPATH",
	name = "A glittering portal",
	display = '<', color_r=255, color_g=0, color_b=255,
	image = myfloor, tint=colors.BLUE,
	add_displays = {mod.class.Grid.new{image="terrain/portal_alpha1.png", dislpay_on_seen=true, display_on_remember=true}},
	notice = true,
	always_remember = true,
	change_level = 5,
	change_zone = "warpath",
	shader = "underwater",
}

newEntity{
	define_as = "PORTAL1",
	name = "A shimmering portal",
	display = '<', color_r=255, color_g=255, color_b=0,
	notice = true,
	image = myfloor, tint=colors.BLUE,
	add_displays = {mod.class.Grid.new{image="terrain/portal_alpha1.png", dislpay_on_seen=true, display_on_remember=true}},
	always_remember = true,
	portal = {3,3},
	shader = "underwater",
}

newEntity{
	define_as = "PORTAL2",
	name = "A shimmering portal",
	display = '<', color_r=255, color_g=255, color_b=0,
	notice = true,
	image = myfloor, tint=colors.BLUE,
	add_displays = {mod.class.Grid.new{image="terrain/portal_alpha1.png", dislpay_on_seen=true, display_on_remember=true}},
	always_remember = true,
	portal = {35,1},
	shader = "underwater",
}

newEntity{
	define_as = "PORTAL3",
	name = "A shimmering portal",
	display = '<', color_r=255, color_g=255, color_b=0,
	notice = true,
	image = myfloor, tint=colors.BLUE,
	add_displays = {mod.class.Grid.new{image="terrain/portal_alpha1.png", dislpay_on_seen=true, display_on_remember=true}},
	always_remember = true,
	portal = {48,24},
	shader = "underwater",
}

newEntity{
	define_as = "PORTAL4",
	name = "A shimmering portal",
	display = '<', color_r=255, color_g=255, color_b=0,
	notice = true,
	image = myfloor, tint=colors.BLUE,
	add_displays = {mod.class.Grid.new{image="terrain/portal_alpha1.png", dislpay_on_seen=true, display_on_remember=true}},
	always_remember = true,
	portal = {23,3},
	shader = "underwater",
}

newEntity{
	define_as = "ELEMENTAL_FLOOR",
	name = "sandy floor", image = myfloor, tint=colors.BLUE,
	display = '.', color_r=0, color_g=255, color_b=255, back_color=colors.DARK_GREY,
	shader = "underwater",
}
for i = 1, 20 do
newEntity{
	define_as = "SHELL"..i,
	name = "sandy floor", image = "terrain/sand.png",
	force_clone = true,
	add_displays = class:makeShells("terrain/shell"),
	display = '.', color=colors.GREEN, back_color={r=44,g=95,b=43},
	always_remember = true,
	shader = "underwater",
}
end


newEntity{
	define_as = "ELEMENTAL_WALL",
	name = "wall", image = mywall, tint=colors.BLUE,
	display = '#', color_r=0, color_g=255, color_b=255, back_color=colors.GREY,
	always_remember = true,
	block_move = true,
	can_pass = {pass_wall=1},
	block_sight = true,
	shader = "underwater",
}
